/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/5 下午1:31
 * LastModified: 2020/03/05 13:31:05
 */

package com.qolome.knowledge.design.pattern.decorator.demo;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月05日 13:31:23
 */
@Slf4j
public class Test {
    public static void main(String[] args) {

        Navigation navigation;
        navigation = new VisitorNavigation();
        log.info("默认导航:{}", navigation.getNavigation());
        navigation = new VipDecorator(navigation);
        log.info("+ VIP用户导航:{}",navigation.getNavigation());
        navigation = new LectorDecorator(navigation);
        log.info("+ 讲师导航:{}",navigation.getNavigation());
        navigation = new AdminDecorator(navigation);
        log.info("+ 讲师导航:{}",navigation.getNavigation());



    }


}
